package com.zone.infrastructure.persistent.dao;

import com.zone.infrastructure.persistent.po.UserAwardRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: zongzi
 * @description: 用户中奖记录表
 * @date: 2025/2/17
 */
@Mapper
public interface IUserAwardRecordDao {

    List<UserAwardRecord> queryUserAwardRecordList(@Param("userId") String userId);

    void insert(UserAwardRecord userAwardRecord);

    void updateStates(@Param("userId") String userId, @Param("orderId") String orderId, @Param("awardStatus") String awardStatus);

    UserAwardRecord queryUserAwardRecord(@Param("userId") String userId, @Param("orderId") String orderId);
}
